<?php

require_once('lib/LzVars.php');

$vars       = new LzVars(
        array(
            'a' => 'A',
            'b' => array(
                'c' => 'C',
                'd' => 'D'
            ),
            'e' => 'E',
            'Z'
        )
    );

$vars->merge(
        array(
            'a' => 'AA',
            'b' => array(
                'd' => 'DD'
            ),
        ),
        'ZZ',
        array(
            'e' => 'EE',
            'c' => 'CC',
        )
    );

print_r($vars->toArr());
?>
---EXPECT---
Array
(
    [a] => AA
    [b] => Array
        (
            [c] => C
            [d] => DD
        )

    [e] => EE
    [0] => Z
    [1] => ZZ
    [c] => CC
)
